import Vue from 'vue'
import App from './App'

import router from './router'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import axios from 'axios'
// import {post,fetch,patch,put} from './axios'
import md5 from 'js-md5'

import Mock from './mock'


// Vue.prototype.$post=post
// Vue.prototype.$fetch=fetch
// Vue.prototype.$patch=patch
// Vue.prototype.$put=put
Vue.prototype.$md5 = md5

// 使用VueResource插件
Vue.use(Element)
// 实例化 Validator
// Vue.use(Validator)

Vue.config.productionTip = false
Vue.prototype.$axios = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
